import java.util.Scanner;

/**
 * 双阶乘
 * https://www.lanqiao.cn/problems/2366/learning/?page=1&first_category_id=1&second_category_id=3&tag_relation=intersection&tags=2021,%E7%9C%81%E8%B5%9B&sort=pass_rate&asc=0
 */
public class Main14 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int ret = 1;
        for(int i = 2021;i > 0;i -= 2) {
            ret = (ret * i) % 100000; // 每次的乘积都% 100000，这样之后，最后得到的就是最后五位
        }
        System.out.println(ret);
        scan.close();
    }
}
